import request from "@/utils/request"
import type { IShop,IList,IShopDetail } from "@/types"
export const fetchShopList = ({_page,_limit}) =>{
    //return request.get<IShop[]>(`/api/shop?_page=${_page}&_limit=${_limit}`) 另一种call方式
    return request.get<IList<IShop>,IList<IShop>>(`/api/shop`,{params:{_page,_limit}})
}

export const fatchShopDetail = (id:string) => {
    return request.get<IShopDetail,IShopDetail>(`/api/fatchShopDetail`,{params:{id}})
}





